<?php
namespace app\base\controller;
use app\base\model\BaseModel;
use think\Controller;
use app\base\service\Redis;
use think\Request;
use think\facade\Session;
use think\Db;


class Test extends Controller
{
    public function set(){
        return Db::name('markday m')->field('m.markdayid,m.markdayname,m.markdaydate,p.picImg,b.backgroundpicImg')
             ->join('markday_pic p','m.markdayImgid=p.picid')
             ->join('markday_backgroundpic b','m.backgroundid=b.backgroundpicid')->order('markdaydate desc')
            ->limit(1,10)->select();           
      
    }
    public function get(){
        return session("userinfo");
    }
}